package com.dt76.smallloanbackendservice.mapper.yaozhao;

import com.dt76.smallloanbackendservice.pojo.yaozhao.OverDue;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OverDueMapper {
    List<OverDue> qryPageAll(@Param("start") int start,
                             @Param("size") int size,
                             @Param("qryUserName") String qryUserName,
                             @Param("qryPhoneNumber") String qryPhoneNumber,
                             @Param("qryLoanId") String qryLoanId,
                             @Param("qryContractId") String qryContractId,
                             @Param("qryRiskClassification") String qryRiskClassification);

    int qryCount(@Param("qryUserName") String qryUserName,
                 @Param("qryPhoneNumber") String qryPhoneNumber,
                 @Param("qryLoanId") String qryLoanId,
                 @Param("qryContractId") String qryContractId,
                 @Param("qryRiskClassification") String qryRiskClassification);


    List<OverDue> qryCollectionPageAll(@Param("start") int start,
                             @Param("size") int size,
                             @Param("qryUserName") String qryUserName,
                             @Param("qryPhoneNumber") String qryPhoneNumber,
                             @Param("qryLoanId") String qryLoanId,
                             @Param("qryCollectionType") String qryCollectionType);

    int qryCollectionCount(@Param("qryUserName") String qryUserName,
                           @Param("qryPhoneNumber") String qryPhoneNumber,
                           @Param("qryLoanId") String qryLoanId,
                           @Param("qryCollectionType") String qryCollectionType);
}
